package com.zb.entity.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.NotNull;
import java.util.Date;

/**
 * @Author WEN
 * @Date 2023/8/7 0007
 **/
@Data
@ApiModel("企业审核开通信息封装")
public class CustomerCheckOpenVo {
    @NotNull(message = "企业ID不能为空")
    @ApiModelProperty(value = "企业ID", required = true)
    private Long id;

    @NotNull(message = "版本ID不能为空")
    @ApiModelProperty(value = "版本ID", required = true)
    private Long versionId;

    @ApiModelProperty(value = "版本名称", required = true)
    private String version;

    @NotNull(message = "版本ID不能为空")
    @ApiModelProperty(value = "版本ID", required = true, example = "1")
    private Integer users;

    @NotNull(message = "开通时间不能为空")
    @JsonFormat(pattern = "yyyy-MM-dd")
    @ApiModelProperty(value = "开通时间", required = true)
    private Date openTime;

    @NotNull(message = "到期时间不能为空")
    @JsonFormat(pattern = "yyyy-MM-dd")
    @ApiModelProperty(value = "到期时间", required = true)
    private Date endTime;

    @NotNull(message = "短信数量不能为空")
    @ApiModelProperty(value = "短信数量", required = true, example = "100")
    private Integer smsBalance;
}
